package com.smartleanx.module.hrm.dal.dataobject.payroll;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smartleanx.framework.tenant.core.db.TenantBaseDO;
import com.smartleanx.module.hrm.eums.payroll.PayrollStateEnum;
import lombok.*;

import java.math.BigDecimal;

/**
 * 薪资月份 DO
 *
 * @author zhangchp
 */
@TableName("hrm_payroll")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PayrollDO extends TenantBaseDO {

    /**
     * 主键ID
     */
    @TableId
    private Long id;
    /**
     * 年
     */
    private Integer year;
    /**
     * 月
     */
    private Integer month;
    /**
     * 发薪人数
     */
    private Integer people;
    /**
     * 发薪金额
     */
    private BigDecimal salary;
    /**
     * 状态
     *
     * 枚举 {@link PayrollStateEnum}
     */
    private Integer state;
}